$(document).ready(function(){
	$("#header-wrapper").ready(function(){
		$("#nav-wrapper, #header-wrapper, #top-wrapper, .notifTanggal, #main-wrapper, #sidebar-wrapper, #footer-wrapper").css("opacity","0");
		$("#header-wrapper").css("top","-1000px");
		$("#main-wrapper").css("right","3000px");
		$("#sidebar-wrapper").css("right","100%");
		$("#top-wrapper").css("top","-1000px");
		$("#header-wrapper, #top-wrapper").animate({"opacity":"1"});
		$("#header-wrapper").animate({"top":"0"},1000);
		$("#top-wrapper").animate({"top":"0px"});
		$("#main-wrapper").animate({"opacity":"1","right":"0px"});
		$("#nav-wrapper").delay("800").animate({"opacity":"1"});
		$(".notifTanggal").delay("1100").animate({"opacity":"1"});
		$("#sidebar-wrapper").delay("1000").animate({"opacity":"1","right":"0px"},1000);
		$("#footer-wrapper").delay("1500").animate({"opacity":"1"},1000);
	});

	$(".openAbout").click(function(){
		$("#aboutBA").fadeIn();
		$("body").css("overflow","hidden")
	});
	$(".closeAbout").click(function(){
		$("#aboutBA").fadeOut();
		$("body").css("overflow","auto")
	});
	$(".openInfo").click(function(){
		$(".openInfo").toggleClass("iconNavAKTIF");
		$(".openChat").removeClass("iconNavAKTIF");
		$(".chatbox").removeClass("chatbox-masuk");
		$(".informasi").fadeToggle("fast");
	});
	$(".openChat").click(function(){
		$(".openChat").toggleClass("iconNavAKTIF");
		$(".chatbox").toggleClass("chatbox-masuk"),1000;
		$(".informasi").slideUp("fast");
	});
});